/* Import Google font - Poppins */
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;500;600&display=swap');
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: 'Poppins', sans-serif;
}

:root {
  --dark: #252525;
  --light: #ffffff;
  --success: #00ff55;
  --error: #ff0000;
  --warning: #ff0000;
  --info: #008cff;
  --dbotm: #ffe600;
  --dbotd: #ff0000;
  --store: #ff0000;
  --forge: #ff0000;
}

.notifications {
  position: fixed;
  top: 30px;
  right: 20px;
  z-index: 9999;
}

.notifications :where(.toast, .column) {
  display: flex;
  align-items: center;
}

.notifications .toast {
  width: 450px;
  height: 60px;
  position: relative;
  overflow: hidden;
  list-style: none;
  border-radius: 10px;
  padding: 16px 17px;
  margin-bottom: 10px;
  background: #2c2d44;
  background-image: -moz-linear-gradient(45deg, #3f3251 2%, #002025 100%);
  background-image: -webkit-linear-gradient(45deg, #3f3251 2%, #002025 100%);
  background-image: linear-gradient(45deg, #3f3251 2%, #002025 100%);
  border: 1px solid white;
  justify-content: space-between;
  animation: show_toast 0.3s ease forwards;
}

.toast::before {
  position: absolute;
  content: "";
  height: 3px;
  width: 100%;
  bottom: 0px;
  left: 0px;
  animation: progress 5s linear forwards;
}
@keyframes progress {
  100% {
    width: 0%;
  }
}

.toast.success::before{
  background: var(--success);
}

.toast.error::before{
  background: var(--error);
}

.toast.warning::before{
  background: var(--warning);
}

.toast.info::before{
  background: var(--info);
}

.toast.dbotm::before{
  background: var(--dbotm);
}

.toast.dbotd::before{
  background: var(--dbotd);
}

.toast.store::before{
  background: var(--store);
}

.toast.ai::before{
  background: var(--dbotm);
}

.toast.forge::before{
  background: var(--dbotm);
}

.toast .column i { /*Icons Size*/
  font-size: 1.95rem;
  font-weight: 100;
}

.toast.success .column i {
  color: var(--success);
}

.toast.error .column i {
  color: var(--error);
}

.toast.warning .column i {
  color: var(--warning);
  
}

.toast.info .column i {
  color: var(--info);
}

.toast.dbotm .column i {
  color: var(--light);
}

.toast.dbotd .column i {
  color: var(--light);
}

.toast.store .column i {
  color: var(--light);
}

.toast.ai .column i {
  color: var(--light);
}

.toast.forge .column i {
  color: var(--dbotm);
}

.toast .column span { /* Text Font Size */
  font-size: 1.0rem;
  margin-left: 12px;
  color:  white;
}

.toast i:last-child {
  color: #ffffff;
  cursor: pointer;
}

.toast i:last-child:hover {
  color: var(--dark);
}

.button .btn {
  border: none;
  outline: none;
  cursor: pointer;
  margin: 0 5px;
  color: var(--light);
  font-size: 1.2rem;
  padding: 10px 20px;
  border-radius: 4px;
}

@media screen and (max-width: 530px) {
  .notifications {
    width: 95%;
  }
  .notifications .toast {
    width: 100%;
    font-size: 1rem;
    margin-left: 20px;
  }
  .buttons .btn {
    margin: 0 1px;
    font-size: 1.1rem;
    padding: 8px 15px;
  }
}

@keyframes show_toast {
  0% {
    transform: translateX(100%);
  }
  40% {
    transform: translateX(-5%);
  }
  80% {
    transform: translateX(0%);
  }
  100% {
    transform: translateX(-10px);
  }
}
.notifications .toast.hide {
  animation: hide_toast 0.3s ease forwards;
}
@keyframes hide_toast {
  0% {
    transform: translateX(-10px);
  }
  40% {
    transform: translateX(0%);
  }
  80% {
    transform: translateX(-5%);
  }
  100% {
    transform: translateX(calc(100% + 20px));
  }
}
